using Commons.Models.Definitions;
using Commons.Models.Settings.Dtos.Stats;
using Commons.Models.Settings.Mappers.TradeValues;

namespace Commons.Models.Settings.Mappers.Stats
{
	public class LevelMapper : IMapper<LevelDto, LevelDefinition>
	{
		public LevelDefinition Map (LevelDto config)
		{
			LevelDefinition level = new LevelDefinition(config.Num, config.RequiredValue);
			level.Reward = new RewardMapper().Map(config.Reward);
			return level;
		}
	}
}

